Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Slosh Forms

List of sections:

char, collection, conditional, conversion, core, doc, file, hashmap, io, iterator, math, namespace, pair, random, scripting, sequence, shell, string, system, test, type, undocumented, vector

Section: char

char-lower, char-upper, char-whitespace?

Section: collection

clear!, empty?, flatten, in?, not-empty?, reverse

Section: conditional

<, <=, ==, >, >=, and, cond, if, match, not, or, when

Section: conversion

->key, ->sym, def?, ref

Section: core

euid, last-command, last-status, uid, =, apply, back-quote, block, comp-time, dec!, def, defmacro, defn, do, doc, doc-raw, dotimes, dotimes-i, dump-globals, dyn, env, err, eval, exit, expand-macro, fn, gensym, get-error, get-globals, get-prop, identity, inc!, is-noop, len, let, let-while, load, load-rc, loop, macro, mk-err, noop, noop-fn, not=, not==, nsubstitute!, occurs, on-raised-error, platform, quote, recur, set!, set-env, set-prop, sizeof-heap-object, sizeof-value, substitute, to-list, to-vec, un-noop-fn, unset-env, usage

Section: doc

build-doc, doc-map, doc-search, get-exemptions, get-globals-sorted, legacy-report, legacy_forms

Section: file

cd, fclose, fflush, fopen, fs-accessed, fs-base, fs-crawl, fs-dir?, fs-exists?, fs-file?, fs-fullpath, fs-len, fs-modified, fs-parent, fs-rm, fs-same?, get-temp, get-temp-file, glob, read, read-all, read-line, temp-dir, with-temp, with-temp-file

Section: hashmap

hash-clear!, hash-haskey?, hash-keys, hash-remove!, make-hash

Section: io

fs-meta

Section: iterator

enumerate, enumerate, file-iter, file-iter, filter, filter, for, for, iter, iter, iter-or-single, iter-or-single, iter?, iter?, list-iter, list-iter, map, map, mk-iter, mk-iter, once-iter, once-iter, range, range, reduce, reduce, repeat-iter, repeat-iter, string-iter, string-iter, vec-iter, vec-iter, vec-iter-pair, vec-iter-pair, vec-iter-rev, vec-iter-rev

Section: math

%, *, euler, pi, +, -, /, 2pow, abs, arccos, arcsin, arctan, ceil, cos, exp, floor, fract, log, log2, max, min, pow, rem, rem-euclid, round, sin, sqrt, tan

Section: namespace

get-in-namespace, get-namespaces, import, ns, with-ns

Section: pair

car, cdr, cons, list, list-append, xar!, xdr!

Section: random

probool, random, random-seq, random-str

Section: scripting

run-script

Section: sequence

butlast, first, last, rest, seq-for

Section: shell

$sh, args, shell-exe, bg-color-rgb, fg-color-rgb, sh, syntax-off, syntax-on, sys-command?

Section: string

str, str-append, str-bytes, str-cat-list, str-clear!, str-contains, str-empty?, str-lower, str-ltrim, str-map, str-push!, str-replace, str-rsplit, str-rsplitn, str-rtrim, str-split, str-splitn, str-starts-with, str-sub, str-trim, str-trim!, str-upper

Section: system

sleep

Section: test

assert-compare, assert-compare, assert-equal, assert-equal, assert-error, assert-error, assert-error-msg, assert-error-msg, assert-false, assert-false, assert-not-compare, assert-not-compare, assert-not-equal, assert-not-equal, assert-true, assert-true

Section: type

->float, ->int, boolean?, callable?, char?, err?, false?, falsey?, float?, hash-set?, int?, io?, list?, nil?, ok?, pair?, seq?, string?, symbol?, true?, vec?

Section: undocumented

bg-black, bg-blue, bg-cyan, bg-default, bg-green, bg-magenta, bg-red, bg-white, bg-yellow, fg-black, fg-blue, fg-cyan, fg-default, fg-green, fg-magenta, fg-red, fg-white, fg-yellow, int-bits, int-max, int-min, ns, __line_handler, call/cc, dasm, defer, doc-string, dump-regs, epr, eprn, fpr, fprn, get, get-rgb-seq, identical?, pr, prn, return, this-fn, tok-default-color, tok-invalid-color, tok-slsh-fcn-color, tok-slsh-form-color, tok-string-color, tok-sys-alias-color, tok-sys-command-color, type, while

Section: vector

make-vec, vec, vec->list, vec-clear!, vec-insert!, vec-pop!, vec-push!, vec-remove!, vec-slice